package tom.jiafei;

public class SquareEquation {
    double result;
    public double calculate(double a, double b, double c){
        double result = 0;
        result = Math.sqrt(b*b-4.0*a*c);
        return result;
    }
    public double result1(double a, double b, double c,double result){
        this.result = result;
        double result1 = (0-result-b)/(2.0*a);
        return result1;
    }
    public double result2(double a, double b, double c,double result){
        double result2 = (0-result+b)/(2.0*a);
        return result2;
    }
}
